Examples of temporal database designs? [closed]

Posted by miku on Programmers See other posts from Programmers or by miku
Published on 2012-07-05T14:48:29Z Indexed on 2012/07/05 15:22 UTC
Read the original article Hit count: 930

I'm researching various database design for historical record keeping - because I would like to implement a prototypical web application that (excessively) tracks changes made by users and let them undo things, see revisions, etc.

  1. I'd love use mercurial or git as backend (with files as records) - since they already implement the kind of append-only changes I imagine. I tried git and dulwich (python git API) - and it went ok - but I was concerned about performance;

  2. Bi-temporal database design lets you store a row along with time periods, when this record was valid. This sure sound more performant than to operate on files on disk (as in 1.) - but I had little luck finding real-world examples (e.g. from open source projects), that use this kind of design and are approachable enough to learn from them.

  3. Revisions à la MediaWiki revisions or an extra table for versions, as in Redmine. The problem here is, that DELETE would take the whole history with it.

  4. I looked at NoSQL solutions, too. With a document oriented approach, it would be simple to just store the whole history of an entity within the document itself - which would reduce design plus implementation time in contrast to a RDBMS approach. However, in this case I'm a bit concerned about ACID-properties, which would be important in the application.

I'd like ask about experiences about real-world and pragmatic designs for temporal data.

© Programmers or respective owner

Related posts about database

Related posts about database-design